wx.cloud.init({
  env:'tuxls-4gadsqlb8cd8de9e',
  traceUser: true
});

App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
  },
  
  globalData: {
    fuyuanli: {
      max: 100,
      gap: 10,
      Level: 1,
      shengli: 0,
      xinli: 0,
      qingxu: 0,
      shejiao: 0
    },
    //用户数据
    userInfo: {
      isLogin:false,
      nickName: "Hi，游客",
      username: "点击去登录",
      _id:"",
      id:"",
      openid:"", // 添加 openid 属性
      avatarUrl: "https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0",
      wenzhang:[],
      message:[],
      pinglunguode:[],
      ban:false,
      isadmin:false,
      fuyuanli: {
        max: 100,
        gap: 10,
        Level: 1,
        shengli: 0,
        xinli: 0,
        qingxu: 0,
        shejiao: 0
      }    
    },
    //校验令牌
    token:"",
    //预约数据
    booking:{
      teacher:'',
      date:'',
      time:'',
      phone:'',
      letter:''
    }
  },
})


